From d286681022b14a09f323d110b7a271daa2616e2a Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Mon, 16 Jun 2025 10:09:38 +0200 Subject: [PATCH] fix(activitylistmodel): fix activities for e2ee files the sharing/activity button was supposed to be hidden, but a later change forgot to adapt the variable used for querying the file metadata so it never could determine the e2e-status Signed-off-by: Jyrki Gadinger --- src/gui/tray/activitylistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp index 8e6df9692..4a4f3f807 100644 --- a/src/gui/tray/activitylistmodel.cpp +++ b/src/gui/tray/activitylistmodel.cpp @@ -166,7 +166,7 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const // If this is an E2EE file or folder, pretend we got no path, hiding the share button which is what we want if (folder) { SyncJournalFileRecord rec; - if (!folder->journalDb()->getFileRecord(fileName.mid(1), &rec)) { + if (!folder->journalDb()->getFileRecord(relPath.mid(1), &rec)) { qCWarning(lcActivity) << "could not get file from local DB" << fileName.mid(1); } if (rec.isValid() && (rec.isE2eEncrypted() || !rec._e2eMangledName.isEmpty())) { -- 2.30.2